package com.zhaowenhao.service;

import com.sun.org.apache.regexp.internal.REUtil;
import com.zhaowenhao.bean.Department;
import com.zhaowenhao.dao.DepartmentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Description:
 * User: zwh
 * Date: 2019-06-06
 * Time: 21:10
 */
@Service
public class DepartmentService {

    @Autowired
    private DepartmentMapper departmentMapper;

    /**
     * 得到所有的公寓信息
     *
     * @return
     */
    public List<Department> getAllDeps() {
        return departmentMapper.selectByExample(null);
    }
}
